layui.define(['layer'], function(exports) {
  var layer = layui.layer;
  var baseUrl = "http://172.16.9.80:9191/zfw/"
  // var baseUrl = "http://10.26.70.31:9191/zfw/"
  // var baseUrl = "https://xmu.sywd11dom.cn/zfw/"
  var api = {
    baseUrl: baseUrl,
    topbar: baseUrl + 'count/topbar',
    homeAllNopage: baseUrl + 'report/all',
    report: baseUrl + 'report',
    homeIsSend: baseUrl + 'report/send',
    reportState: baseUrl + 'report/reportState',
    homeTimeout: baseUrl + 'report/timeout',
    homeDone: baseUrl + "report/progress",
    homeUrgent: baseUrl + "report/urgent",
    getByNo: baseUrl + "report/no",
    listSearch: baseUrl + "report/search",
    importData: baseUrl + "report/import",
    getOptions: baseUrl + 'optionAll',
    attachment: baseUrl + 'attachment',
    uploadAttach: baseUrl + 'upload',
    user: baseUrl + 'user',
    userSearch: baseUrl + 'user/search',
    resetPwd: baseUrl + 'user/reset',
    login: baseUrl + 'salogin',
    logout: baseUrl + 'saLogout',
    userUpdate: baseUrl + "user/update",
    countIssueType: baseUrl + "count/issueType",
    ratioPercent: baseUrl + "count/ratioPercent",
    countReportType: baseUrl + "count/reportType",
    countSendDepartment: baseUrl + "count/sendDepartment",
    log: baseUrl + 'log',
    uncheck: baseUrl + 'report/uncheck',
    tmpSave: baseUrl + 'report/staged',
    getSendListBySendDepartment: baseUrl + 'count/send/list',
    getDoneListBySendDepartment: baseUrl + 'count/done/list',
    countCaseType: baseUrl + 'count/caseType',
    getAllByReportCaseType: baseUrl + 'report/reportCaseType',
    getAllReporters: baseUrl + 'person/getAllReporters',
    getReportsByReporterName: baseUrl + 'person/getReportsByReporterName',
    getAllReporteders: baseUrl + 'person/getAllReporteders',
    getReportsByReportederName: baseUrl + 'person/getReportsByReportederName'
  };
  //expotts("key",value)
  exports('Api', api);
});
